Skip to content

Conversation

adrientetar
Copy link
Contributor

  • don't check for an hardcoded copyright claim year, check the 2 surrounding strings instead
  • logic: if either the // or #-style copyright patterns are found, don't invalidate
  • cleanup hardcoded content and streamline the few files with different line breaks

r? @brson

@alexcrichton
Copy link
Member

Oh dear it seems I'm a little late to the party, but I've also fixed this in #11313 as part of alexcrichton@3480a32 which still validates the year, but uses the current date and refactors things a bit.

bors added a commit that referenced this pull request Jan 5, 2014
- don't check for an hardcoded copyright claim year, check the 2 surrounding strings instead
- logic: if either the `//` or `#`-style copyright patterns are found, don't invalidate
- cleanup hardcoded content and streamline the few files with different line breaks

r? @brson
@bors bors closed this Jan 5, 2014
flip1995 pushed a commit to flip1995/rust that referenced this pull request Aug 17, 2023
…_block, r=Centri3

Correctly handle async blocks for NEEDLESS_PASS_BY_REF_MUT

Fixes rust-lang/rust-clippy#11299.

The problem was that the `async block`s are popping a closure which we didn't go into, making it miss the mutable access to the variables.

cc `@Centri3`

changelog: none
flip1995 pushed a commit to flip1995/rust that referenced this pull request Aug 24, 2023
…_block, r=Centri3

Correctly handle async blocks for NEEDLESS_PASS_BY_REF_MUT

Fixes rust-lang/rust-clippy#11299.

The problem was that the `async block`s are popping a closure which we didn't go into, making it miss the mutable access to the variables.

cc `@Centri3`

changelog: none
flip1995 pushed a commit to flip1995/rust that referenced this pull request Aug 24, 2023
…_block, r=Centri3

Correctly handle async blocks for NEEDLESS_PASS_BY_REF_MUT

Fixes rust-lang/rust-clippy#11299.

The problem was that the `async block`s are popping a closure which we didn't go into, making it miss the mutable access to the variables.

cc `@Centri3`

changelog: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants